//
//  VWTsModel.swift
//  VideoWatcher
//
//  Created by JY_NEW on 2021/10/27.
//  Copyright © 2021 JunYue. All rights reserved.
//

import Foundation

public protocol MultiFileModelType {
    var url: String { get }
    var filename: String { get }
}
extension String: MultiFileModelType {
    public var url: String { return self }
    public var filename: String { return (self as NSString).lastPathComponent }
}
extension URL: MultiFileModelType {
    public var url: String { return self.absoluteString }
    public var filename: String { return self.lastPathComponent }
}
